package top.wbhzx.wangpan.service;

import java.util.List;
import top.wbhzx.wangpan.entity.User;

public interface UserService {
	//================查========================
	/**
	 * 根据ID查找一个
	 * @param id
	 * @return pojo
	 */
	User selOneById(Integer id) throws Exception;
	/**
	 * 根据条件查找多个
	 * @param pojo
	 * @return List<Pojo>
	 */
	List<User> selListByPo(User po) throws Exception;
	
	
	//================增=========================
	/**
	 * 新增一条数据
	 * @param pojo
	 * @return updateCount
	 */
	Integer addOne(User pojo) throws Exception;
	
	
	//================改========================
	/**
	 * 根据id修改一个
	 * @param pojo
	 * @return updateCount
	 */
	Integer modifyOnById(User pojo) throws Exception;
	/**
	 * 根据id修改多个
	 * @param ids
	 * @param pojo
	 * @return updateCount
	 */
	Integer modifyListById(Integer[] ids, User object) throws Exception;
	
	
	//================删==========================
	/**
	 * 根据id删除一个
	 * @param id
	 * @return updateCount
	 */
	Integer removeOneById(Integer id) throws Exception;
	/**
	 * 根据id删除多个
	 * @param ids
	 * @return updateCount
	 */
	Integer removeListById(Integer[] ids) throws Exception;
}
